package com.cskaoyan.vo.wxcart;

import com.cskaoyan.bean.user.Address;
import com.cskaoyan.bean.wxcart.WxCart;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * @program: mall
 * @description:
 * @author: Mr.Mengmeng
 * @create: 2021-04-13 20:28
 **/
@Data
public class WxCartCheckoutVo {

    private BigDecimal grouponPrice;// 团购价格
    private Integer grouponRulesId;// 团购id

    private Integer couponId;// 优惠卷id
    private BigDecimal couponPrice;// 优惠卷价格 discount
    private Integer availableCouponLength;// 可获得的优惠卷数量(99-5)


    private Integer addressId;// 地址id
    private Address checkedAddress;// 地址详情


    private double goodsTotalPrice;// 商品总费用 goodsPrice

    private Integer freightPrice;// 运费 (88-8)

    private double orderTotalPrice;// 订单全部价格=商品价格+运费-优惠卷

    private double actualPrice;// 实际价格=订单价格-用户积分

    private List<WxCart> checkedGoodsList;//商品list详情

    public WxCartCheckoutVo(BigDecimal grouponPrice, Integer grouponRulesId, Integer couponId, BigDecimal couponPrice, Integer availableCouponLength, Integer addressId, Address checkedAddress, double goodsTotalPrice, Integer freightPrice, double orderTotalPrice, double actualPrice, List<WxCart> checkedGoodsList) {
        this.grouponPrice = grouponPrice;
        this.grouponRulesId = grouponRulesId;
        this.couponId = couponId;
        this.couponPrice = couponPrice;
        this.availableCouponLength = availableCouponLength;
        this.addressId = addressId;
        this.checkedAddress = checkedAddress;
        this.goodsTotalPrice = goodsTotalPrice;
        this.freightPrice = freightPrice;
        this.orderTotalPrice = orderTotalPrice;
        this.actualPrice = actualPrice;
        this.checkedGoodsList = checkedGoodsList;
    }

    public WxCartCheckoutVo() {
    }
}
